<template>
  <div>
<!--    <wanglei-button @click="vueOptionsAPIShow">VueOptionsAPI消息</wanglei-button>-->
  </div>
  <div>
    <wanglei-button @click="handleClick">消息</wanglei-button>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { WangleiMessage } from '@wanglei-view/components'

export default defineComponent({
  setup() {
    const handleClick = () => {
      WangleiMessage({
        center: true,
        type: 'danger',
        message: new Date().toLocaleDateString()
      })
    }

    return {
      handleClick
    }
  },
  methods: {
    vueOptionsAPIShow() {
      this.$message(new Date().toLocaleDateString())
    }
  }
})
</script>

<style scoped>

</style>
